package serverMain;
// <editor-fold defaultstate="collapsed" desc="Imports">
import java.io.IOException;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
// </editor-fold> 

/**
 * @file Server.java
 *
 * @version 0.1
 * @author Chris Sewell 10008342
 */
public class Server {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int port = 3434;
        int version;

        //Get version of assignment
        System.out.print("Version 1/2: ");
        version = scan.nextInt();
        try {
            //Create new server thread to recieve new client connectionss
            ServerThread server = new ServerThread(port, version);
            server.start();
        } catch (IOException ex) {
            Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
